package com.test.design.example2.dto;

import com.test.design.example2.dto.cxcp.Button;

/**
 * @program: design-patternz
 * @description: windows按钮
 * @author: <a href="mailto:zhengjiaming@gtmap.cn">zhengjiaming</a>
 * @create: 2024-12-26 11:11
 **/
public class WindowsButton implements Button {
    private String ys; //颜色
    private String dx; //大小

    public String getYs() {
        return ys;
    }

    public void setYs(String ys) {
        this.ys = ys;
    }

    public String getDx() {
        return dx;
    }

    public void setDx(String dx) {
        this.dx = dx;
    }

    @Override
    public String toString() {
        return "WindowsButton{" +
                "ys='" + ys + '\'' +
                ", dx='" + dx + '\'' +
                '}';
    }

    @Override
    public boolean click() {
        System.out.println("点击了windows按钮" + ys + dx);
        return false;
    }
}
